<template>
  <div id="app">
    <!-- <router-view/> -->
    <div class="line">
      <van-row>
        <van-col><img class="img_1" src="./assets/img/wangyi.png"/></van-col>
        <van-col>
          <van-search
            background="#ededed"
            class="search-input"
            v-model="value"
            placeholder="请输入搜索关键词"
          />
        </van-col>
        <van-col>
          <div class="loginBtn">登录</div>
        </van-col>
      </van-row>
   
    </div>
       <van-tabs>
        <van-tab v-for="index in 10" :title="'标签 ' + index" :key="index">
          <!-- 内容 {{ index }} -->
        </van-tab>
      </van-tabs>

      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>1</van-swipe-item>
        <van-swipe-item>2</van-swipe-item>
        <van-swipe-item>3</van-swipe-item>
        <van-swipe-item>4</van-swipe-item>
      </van-swipe>


      <van-tabbar v-model="active">
  <van-tabbar-item icon="home-o">标签</van-tabbar-item>
  <van-tabbar-item icon="search" dot>标签</van-tabbar-item>
  <van-tabbar-item icon="friends-o" badge="5">标签</van-tabbar-item>
  <van-tabbar-item icon="setting-o" badge="20">标签</van-tabbar-item>
</van-tabbar>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      value: "",
      active:''
    };
  }
};
</script>

<style>
#app {
  /* font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; */
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
.line {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  flex-flow: row nowrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -moz-align-items: center;
  align-items: center;
  background: #fff;
  padding: 0.16rem 0.3rem;
}
.img_1 {
  width: 2rem;
  margin-right: 0.2rem;
}
.van-search {
  border-radius: 0.2rem;
  padding: 0;
}
.van-search__content {
  width: 5.5rem;
  background-color: #ededed;
  border-radius: 0.2rem;
}
.loginBtn {
  margin: 0.1rem 0 0 0.2rem;
  width: 0.8rem;
  height: 0.5rem;
  line-height: 0.5rem;
  color: #f00;
  border: 1px solid #f00;
}
.van-tab{
  /* width: 2rem; */
}
 .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 50px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
  }
</style>
